﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class MRP_CheckSystem : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //lblInformation.Text = "检查用户信息...\n";
        //if (Membership.GetAllUsers().Count == 0)
        //{
        //    Roles.CreateRole("administrator");
        //    Membership.CreateUser("admin", "admin+123", "admin@yjc.com");
        //    Roles.AddUserToRole("admin", "administrator");
        //}
        //else if(!Roles.RoleExists("administrator"))
        //{
        //    try
        //    {
                
        //        Roles.CreateRole("administrator");
        //        //Membership.CreateUser("admin", "admin+123", "admin@yjc.com");
        //        Roles.AddUserToRole("admin", "administrator");
        //    }
        //    catch (Exception ex)
        //    {

        //    }
        //}

    }
}
